{% extends "base.html" %}

{% block class %}blog{% endblock %}

{% block main %}
<h3>Blog: Latest Postings</h3>
<dl>{% load comments %}{% load markup %}
    {% for object in latest %}{% get_free_comment_count for blog.post object.id as comment_count %}
        <dt><a id="{{ object.slug }}" href="{{ object.get_absolute_url }}">{{ object.title }}</a></dt>
        <dd>{{ object.body|markdown|truncatewords:80 }}</dd>
        <dd>Posted on {{ object.create_date|date:"F j, Y" }}
            <a href="{{ object.get_absolute_url }}#comments" class='commentlink'>{{ comment_count }} Comment{{ comment_count|pluralize }}</a>
	    Tags:{% for tag in object.assoc_tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.title }}</a>
	    {% if not forloop.last %}, {% endif %}{% endfor %}
        </dd>
    {% endfor %}
</dl>
{% endblock %}
